// File generated from our OpenAPI spec by Stainless.

package com.metest.api.services.async.rest.actuator

import com.metest.api.core.ClientOptions
import com.metest.api.core.RequestOptions
import com.metest.api.core.http.HttpResponse
import com.metest.api.core.http.HttpResponseFor
import com.metest.api.models.rest.actuator.sbom.SbomRetrieveByIdParams
import com.metest.api.models.rest.actuator.sbom.SbomRetrieveParams
import com.metest.api.models.rest.actuator.sbom.SbomRetrieveResponse
import java.util.concurrent.CompletableFuture
import java.util.function.Consumer

interface SbomServiceAsync {

    /**
     * Returns a view of this service that provides access to raw HTTP responses for each method.
     */
    fun withRawResponse(): WithRawResponse

    /**
     * Returns a view of this service with the given option modifications applied.
     *
     * The original service is not modified.
     */
    fun withOptions(modifier: Consumer<ClientOptions.Builder>): SbomServiceAsync

    /** Actuator web endpoint 'sbom' */
    fun retrieve(): CompletableFuture<SbomRetrieveResponse> = retrieve(SbomRetrieveParams.none())

    /** @see retrieve */
    fun retrieve(
        params: SbomRetrieveParams = SbomRetrieveParams.none(),
        requestOptions: RequestOptions = RequestOptions.none(),
    ): CompletableFuture<SbomRetrieveResponse>

    /** @see retrieve */
    fun retrieve(
        params: SbomRetrieveParams = SbomRetrieveParams.none()
    ): CompletableFuture<SbomRetrieveResponse> = retrieve(params, RequestOptions.none())

    /** @see retrieve */
    fun retrieve(requestOptions: RequestOptions): CompletableFuture<SbomRetrieveResponse> =
        retrieve(SbomRetrieveParams.none(), requestOptions)

    /** Actuator web endpoint 'sbom-id' */
    fun retrieveById(id: String): CompletableFuture<HttpResponse> =
        retrieveById(id, SbomRetrieveByIdParams.none())

    /** @see retrieveById */
    fun retrieveById(
        id: String,
        params: SbomRetrieveByIdParams = SbomRetrieveByIdParams.none(),
        requestOptions: RequestOptions = RequestOptions.none(),
    ): CompletableFuture<HttpResponse> =
        retrieveById(params.toBuilder().id(id).build(), requestOptions)

    /** @see retrieveById */
    fun retrieveById(
        id: String,
        params: SbomRetrieveByIdParams = SbomRetrieveByIdParams.none(),
    ): CompletableFuture<HttpResponse> = retrieveById(id, params, RequestOptions.none())

    /** @see retrieveById */
    fun retrieveById(
        params: SbomRetrieveByIdParams,
        requestOptions: RequestOptions = RequestOptions.none(),
    ): CompletableFuture<HttpResponse>

    /** @see retrieveById */
    fun retrieveById(params: SbomRetrieveByIdParams): CompletableFuture<HttpResponse> =
        retrieveById(params, RequestOptions.none())

    /** @see retrieveById */
    fun retrieveById(id: String, requestOptions: RequestOptions): CompletableFuture<HttpResponse> =
        retrieveById(id, SbomRetrieveByIdParams.none(), requestOptions)

    /** A view of [SbomServiceAsync] that provides access to raw HTTP responses for each method. */
    interface WithRawResponse {

        /**
         * Returns a view of this service with the given option modifications applied.
         *
         * The original service is not modified.
         */
        fun withOptions(modifier: Consumer<ClientOptions.Builder>): SbomServiceAsync.WithRawResponse

        /**
         * Returns a raw HTTP response for `get /rest/actuator/sbom`, but is otherwise the same as
         * [SbomServiceAsync.retrieve].
         */
        fun retrieve(): CompletableFuture<HttpResponseFor<SbomRetrieveResponse>> =
            retrieve(SbomRetrieveParams.none())

        /** @see retrieve */
        fun retrieve(
            params: SbomRetrieveParams = SbomRetrieveParams.none(),
            requestOptions: RequestOptions = RequestOptions.none(),
        ): CompletableFuture<HttpResponseFor<SbomRetrieveResponse>>

        /** @see retrieve */
        fun retrieve(
            params: SbomRetrieveParams = SbomRetrieveParams.none()
        ): CompletableFuture<HttpResponseFor<SbomRetrieveResponse>> =
            retrieve(params, RequestOptions.none())

        /** @see retrieve */
        fun retrieve(
            requestOptions: RequestOptions
        ): CompletableFuture<HttpResponseFor<SbomRetrieveResponse>> =
            retrieve(SbomRetrieveParams.none(), requestOptions)

        /**
         * Returns a raw HTTP response for `get /rest/actuator/sbom/{id}`, but is otherwise the same
         * as [SbomServiceAsync.retrieveById].
         */
        fun retrieveById(id: String): CompletableFuture<HttpResponse> =
            retrieveById(id, SbomRetrieveByIdParams.none())

        /** @see retrieveById */
        fun retrieveById(
            id: String,
            params: SbomRetrieveByIdParams = SbomRetrieveByIdParams.none(),
            requestOptions: RequestOptions = RequestOptions.none(),
        ): CompletableFuture<HttpResponse> =
            retrieveById(params.toBuilder().id(id).build(), requestOptions)

        /** @see retrieveById */
        fun retrieveById(
            id: String,
            params: SbomRetrieveByIdParams = SbomRetrieveByIdParams.none(),
        ): CompletableFuture<HttpResponse> = retrieveById(id, params, RequestOptions.none())

        /** @see retrieveById */
        fun retrieveById(
            params: SbomRetrieveByIdParams,
            requestOptions: RequestOptions = RequestOptions.none(),
        ): CompletableFuture<HttpResponse>

        /** @see retrieveById */
        fun retrieveById(params: SbomRetrieveByIdParams): CompletableFuture<HttpResponse> =
            retrieveById(params, RequestOptions.none())

        /** @see retrieveById */
        fun retrieveById(
            id: String,
            requestOptions: RequestOptions,
        ): CompletableFuture<HttpResponse> =
            retrieveById(id, SbomRetrieveByIdParams.none(), requestOptions)
    }
}
